package com.fruits.login.service;

import com.fruits.login.model.PlayerLoginInfo;
import com.fruits.login.model.ReturnMsg;

import javax.validation.Valid;

public interface LoginService {

    /**
     * 手机验证码登录
     * @param playerLoginInfo
     */
    ReturnMsg loginByPhoneAndCode(PlayerLoginInfo playerLoginInfo);

    /**
     * 客户端使用Uid登录
     * @param playerLoginInfo
     */
    ReturnMsg loginByUid(PlayerLoginInfo playerLoginInfo);

    /**
     * 使用MAC登录,即登录参数中没有uid和phone
     * @param playerLoginInfo
     */
    ReturnMsg loginByMac(PlayerLoginInfo playerLoginInfo);

    /**
     * 登录失败
     * @param errorMessge
     * @return
     */
    ReturnMsg retuenPlayerInfoWhereFaile(String errorMessge);

    boolean signValidator(@Valid PlayerLoginInfo playerLoginInfo);
}
